﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ContactsForm.Net
{
    /// <summary>
    /// Class for recieved arguments.  These need additional processing to be meaningful.
    /// This class is intended to be used to handled commands between applications.
    /// </summary>
    [Serializable]
    class DataArguments : EventArgs
    {
        // so far the data i'm useing is only in string
        private string _data;
        private string _Dtype;
        private string _args;

        /// <summary>
        /// Gets or Sets the Arguments
        /// </summary>
        public string DataArgs
        {
            get { return _args; }
            set { _args = value; }
        }

        /// <summary>
        /// Read Only property
        /// </summary>
        public string Data
        {
            get { return _data; }
            set { _data = value; }
        }
        /// <summary>
        /// Use this to write a string description of the data type so it'll be easier to figure out what the data is.
        /// </summary>
        public string DType
        {
            get { return _Dtype; }
            set { _Dtype = value; }
        }
    }

    /// <summary>
    /// Class for recieved Data.  This is for generic data.
    /// </summary>
    public class DataReceivedEventArgs : EventArgs
    {
        public object Data { get; set; }
        public DataReceivedEventArgs() { }
        public DataReceivedEventArgs(object data)
        {
            Data = data;
        }
    }
}
